<!DOCTYPE html>
<html>
<head>
<title>个人中心</title>
<?php $this->load->view('common/include');?>
<style media="screen">
.user-box {
  background: #6699FF;
}
.user-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 11.2px 28px;
}
.user-info .user-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  vertical-align: bottom;
}
.user-info .user-name {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  color: #fff;
  font-size: 17px;
  text-align: left;
  padding-left: 1.5em;
}
.user-info .user-phone {
  font-size: 14px;
  font-weight: normal;
  display: block;
}
.user-count {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.8em 0;
}
.user-count .user-count-item {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  color: #fff;
  text-align: center;
}
.user-count .user-count-item .user-count-title {
  font-size: 12px;
}
.user-count .user-count-item .user-count-number {
  font-size: 20px;
  line-height: 1em;
  display: block;
}
.icon-vipcard{
  color: #FF3300 !important;
}
.icon-sort{
  color: #FFC600 !important;
}
.icon-similar{
  color: #6699CC !important;
}

[v-cloak]{ display: none }
</style>
</head>
<body id="app" v-cloak>
	<header-layout title='Bone Vue'>
		<header-dock align='left'>
			<a href="<?php echo site_url('/home'); ?>"><Icon type="back"></Icon></a>
		</header-dock>
		个人中心
	</header-layout>
	<layout-main>
		<layout-box>
			<div class="user-box" style="padding-bottom: 15px;">
				<div class="user-info">
					<div class="user-avatar">
						<img src="<?=base_url()?>/img/avatar.png" alt="">
					</div>
					<h2 class="user-name">{{user.username}}{{user.sname}}
						<span class="user-phone">{{user.schoolName}}{{user.gradeName}}{{user.className}}</span></h2>
				</div>
			</div>
			<tabs-vertical>
				<tabs-item-vertical arrow=true iconcss=true icon='vipcard'>
					<a href="<?php echo site_url('/user/edit') ; ?>">个人资料</a>
				</tabs-item-vertical>
				<tabs-item-vertical arrow=true iconcss=true icon='sort'>
					<a href="<?php echo site_url('/order/myorder') ; ?>">我的订单</a>
				</tabs-item-vertical>
        <tabs-item-vertical arrow=true iconcss=true icon='similar'>
					<a href="<?php echo site_url('/user/nutrient') ; ?>">营养分析</a>
				</tabs-item-vertical>
        <tabs-item-vertical arrow=true iconcss=true icon='similar'>
					<a href="<?php echo site_url('/passport/resetpassword') ; ?>">修改密码</a>
				</tabs-item-vertical>
			</tabs-vertical>
		</layout-box>
		<grid-row p='1000'>
      <button class="bo-btn-lg bo-btn-block bo-btn-blank" style="background:#fff;border-right:0;border-left:0;"   @click="logout">  退出登录 </button>
		</grid-row>
	</layout-main>
	<script>
		var USERINFO =  <?php echo json_encode($user);?>;
		var SCHOOLS  = <?php echo json_encode($school); ?>;
		var GRADES = <?php echo json_encode($grade); ?>;
		var CLASSES = <?php echo json_encode($class); ?>;
	</script>
	<script src="js/user.build.js"></script>
</body>
</html>
